package com.chance.cc.crawler.development.command.publish.iqiyi;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.iqiyi.IQiYiRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.script.iqiyi.IqiyiCrawlerScript;
import com.chance.cc.crawler.development.command.trigger.domain.iqiyi.IQiYiCrawlerTriggerInfo;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2021/4/11 12:24
 * @Description
 *      爱奇艺
 **/
public class IQiYiPublishCrawlerJob {

    public static void main(String[] args) {
//        publishSimpleCrawlerJob();

        IqiyiCrawlerScript.publishCrawlerNodeScript();
    }

    private static void publishSimpleCrawlerJob(){
        CrawlerJob crawlerJob = IQiYiRealtimeCrawlerSchedulerJob.crawlerSchedulejob();
        IQiYiCrawlerTriggerInfo.simpleCrawlerScheduleTriggerInfo(crawlerJob.generateCrawlerKey(),crawlerJob.generateCrawlerTriggerKey());
    }
}
